<template>
  <div class="h-full" v-loading="loading">
    <el-config-provider :locale="locale">
      <router-view v-if="!loading" />
    </el-config-provider>
  </div>
</template>

<script setup lang="ts">
import locale from 'element-plus/es/locale/lang/zh-cn'
import { ref } from 'vue'
import bridge from '@/common/bridge'
import { useLoginData } from '@/manager/store'

const loading = ref(true)

bridge.ready(() => {
  loading.value = false

  const { setLoginData } = useLoginData()

  setLoginData({
    userId: 'XFB22XVfllWbj',
    userName: '测试客服',
    userAvatar: ''
  })
})
</script>

<style scoped></style>
